import request from '@/utils/request'

// 图纸登记分页
export function getList(params) {
  return request({
    url: '/drawRegistration/list',
    method: 'POST',
    params
  })
}

// 查询合同项目的名称
export function selectProjectName(params) {
  return request({
    url: '/projectInvocie/ProjectName',
    method: 'post',
    params
  })
}

// 添加图纸登记
export function addRegistration(data) {
  return request({
    url: '/drawRegistration/add',
    method: 'POST',
    data
  })
}

// 查询单条
export function selectRegistration(params) {
  return request({
    url: '/drawRegistration/load',
    method: 'POST',
    params
  })
}

// 删除图纸登记
export function deleteRegistration(data) {
  return request({
    url: '/drawRegistration/delete',
    method: 'post',
    data
  })
}

// 修改图纸登记
export function updateRegistration(data) {
  return request({
    url: '/drawRegistration/update',
    method: 'post',
    data
  })
}
